<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="common/tag.jsp"%>
<!DOCTYPE html>
<html>
<head>
  <title>列表页</title>
</head>
<body>
<table>
  <thead>
    <th>名称</th>
    <th>库存</th>
    <th>开始时间</th>
    <th>结束时间</th>
    <th>创建时间</th>
    <th>详情页</th>
  </thead>
  <tbody>
    <c:forEach var="sk" items="${list}" >
      <tr>
        <td>${sk.name}</td>
        <td>${sk.number}</td>
        <td><fmt:formatDate value="${sk.startTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
        <td><fmt:formatDate value="${sk.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
        <td><fmt:formatDate value="${sk.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
        <td><a href="/seckill/${sk.id}/detail" target="_blank">详情</a></td>
      </tr>
    </c:forEach>
  </tbody>
</table>
</body>
</html>
